
from autoTest_brtcApi.core.rest_client import RestClient

# 构造接口请求的方式,接口地址
class UserApiUtils(RestClient):
    #注册
    def reg_util(self,headers,**kwargs):
        res=self.excute_request("POST","/register",headers,**kwargs)
        return res
    #登录
    def login_util(self,headers,**kwargs):
        res = self.excute_request("POST", "/login", headers, **kwargs)
        return res

    def modifyUserNick_util(self,headers,**kwargs):
        res = self.excute_request("PUT", "/modifyUserNick", headers, **kwargs)
        return res

#实例化
userApiUtil=UserApiUtils()